package com.timerecord;

import com.timerecord.ui.MainUI;
import javafx.application.Application;
import javafx.stage.Stage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class App extends Application {
    private static final Logger logger = LoggerFactory.getLogger(App.class);

    @Override
    public void start(Stage primaryStage) {
        MainUI mainUI = new MainUI();
        primaryStage.setScene(mainUI.createScene(primaryStage));
        primaryStage.setTitle("Time Recorder - V1.2");
        primaryStage.show();
        logger.info("时间记录器应用启动成功");
    }

    public static void main(String[] args) {
        launch(args);
    }
}